﻿<%@ Page Title="" Language="C#" MasterPageFile="~/layout/CommonM.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Comm.Web.View.Index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="placeHead" runat="server">
    <link href="../Css/button.css" rel="stylesheet" />
    <script src="../assets/lib/jquery/jquery-1.9.0.min.js"></script>
    <script src="../Js/msgBox.js"></script>
    <script src="../Js/manage.js"></script>
    <script src="../Js/cart.js"></script>
<%--    <script src="../Js/search.js"></script>--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="placeSearch" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="placeContent" runat="server">
    <form id="form1" runat="server" style="height:auto!important;height:520px;min-height:520px;margin: 0 70px;border: 0px solid #D8CCCC;">
             <div id="search" style="margin:0px; height: 75px">
          <input class="button button-primary button-rounded button-small" style="background-color: #524F48;width:108px; float:right;  margin-top:28px; margin-left:5px; height:25px; line-height:25px;" type="submit" id="btnSearch" value="图书搜索"/>
          <input type="text" id="_Search" style="width:400px; margin-top:25px; color:white; float:right; background-color: #484646;" name="bName" placeholder="请输入搜索内容"/>
     </div>
        <div style="border: 1px solid #D8CCCC;">
    <DIV class="contentstyle">
            <DIV id="divOrder">
            <DIV style="MARGIN: 20px 0px; TEXT-ALIGN: left">排序方式： <INPUT class="anniu" style="BORDER-RIGHT: seagreen 1px solid; BORDER-TOP: seagreen 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: seagreen 1px solid; WIDTH: 65px; COLOR: black; BORDER-BOTTOM: seagreen 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #c0ffc0" type="submit" value="<%=btnOrderByDate %>" name="btnGetDate" > 
            | <INPUT class="anniu"  style="BORDER-RIGHT: seagreen 1px solid; BORDER-TOP: seagreen 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 12px; BORDER-LEFT: seagreen 1px solid; WIDTH: 57px; COLOR: black; BORDER-BOTTOM: seagreen 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #c0ffc0" type="submit" value="<%=btnOrderBy %>"  name="btnPriceOrderby" /></DIV></DIV></DIV>
    <asp:Repeater ID="bookListRepeater" runat="server" EnableViewState="true">
    <ItemTemplate>
    <TABLE style="width:100%;">
                    <TBODY>
                    <TR>
                      <TD rowSpan=2><A id= "<%#Eval("Id")%>" strId="strId" style="cursor:pointer;"><IMG 
                        style="CURSOR: hand" height="121" border="0"
                        alt='<%#Eval("Title") %>' hspace="4"
                        src='<%#Eval("ISBN","../images/BookCovers/{0}.jpg") %>' width=95></A> 
</TD>
                      <TD style="FONT-SIZE: small; COLOR: red" width=650><A 
                        class="booktitle" id="btn_<%#Eval("Id")%>" EditId="EditId" style="cursor:pointer;" ><%#Eval("Title") %>
                       </A> </TD>

                    </TR>
                    <TR>
                      <TD align="left"><SPAN 
                        style="FONT-SIZE: 12px; LINE-HEIGHT: 20px"><%#Eval("Author") %></SPAN><BR><BR><SPAN 
                        style="FONT-SIZE: 12px; LINE-HEIGHT: 20px"><%# this.CutString(Eval("ContentDescription").ToString(),150)%></SPAN> 
                      </TD></TR>
                    <TR>
                       <TD align="left"><SPAN 
                        style="FONT-WEIGHT: bold; FONT-SIZE: 13px; LINE-HEIGHT: 20px">出版日期： 
                       <%#GetDate(Eval("PublishDate"))%></SPAN> </TD>
                      <TD align="right">
                      <a class="button button-primary button-rounded button-small" carType="car" style="background-color: #524F48; margin-right:10px; width:130px; height:25px; line-height:25px;" id="btn<%#Eval("Id")%>">加入购物车</a>
                          <SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 13px; LINE-HEIGHT: 20px">&yen; 
                       <%#Eval("UnitPrice","{0:0.00}")%></SPAN> </TD></TR></TBODY></TABLE>
    </ItemTemplate>
    <SeparatorTemplate>
    <hr style="margin: 3px 0px;" />
    </SeparatorTemplate>
    </asp:Repeater>
    <div class="contentstyle" runat="server"
            style="MARGIN: 20px 0px; TEXT-ALIGN: left;float:right;">第<span><%=htmlCurrentPage %></span>页 共<span><%=IndexSum %></span> 页
<%--        <asp:Label ID="lblCurretnPage" runat="server" ></asp:Label>页 共<asp:Label ID="lblPageCount" runat="server"></asp:Label>--%>
            <input type="hidden" name="currentPage" value="<%=htmlCurrentPage %>" />
            <input type="submit" style="height:25px;" value="上一页" name="htmlBtnPre" /> <input type="submit" style="height:25px;" value="下一页" name="htmlBtnNext" />
            </div>
    </div>
    </form>
</asp:Content>
